﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Mukhopatro.BusinessLogicLayer;
using Mukhopatro.BusinessEntities;
using Mukhopatro.Helpers;

namespace Mukhopatro.Admin
{
    public partial class Admin : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    if (SessionManager.CustomerId == -1)
                    {
                        CustomerBLL bll = new CustomerBLL();
                        Customer customer = bll.GetCustomer(obj => obj.ClientId == SiteSettings._CLIENT_ID);
                        SessionManager.CustomerId = customer.Id;
                    }
                }
                catch (Exception ex)
                {
                }
            }
        }
    }
}